﻿<%@ Page Title="" Language="C#" MasterPageFile="~/App_MasterPages/layout.Master" AutoEventWireup="true" CodeBehind="RSViewCalls.aspx.cs" Inherits="mojoPortal.Web.RS.SBM.RSViewCalls" %>


<asp:Content ID="Content1" ContentPlaceHolderID="leftContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainContent" runat="server">

<fieldset><legend>Search</legend>
<table>
<tr>
<td align="right">ServiceCall ID:</td><td colspan="3"><asp:TextBox ID="txtCallID" runat="server" Width="30"></asp:TextBox><asp:Button ID="btnGo" runat="server" Text="..." Width="25" /></td>
</tr>
<tr>
<td align="right">Date:</td><td><asp:TextBox ID="txtDate" runat="server" Width="70"></asp:TextBox></td>
<td align="right">Location:</td><td><asp:DropDownList ID="ddlLocation" runat="server"/></td>
</tr>
<tr>
<td align="right">Request Type:</td><td><asp:DropDownList ID="ddlCallType" runat="server"/></td>
<td align="right">Status:</td><td><asp:DropDownList ID="ddlCallStatus" runat="server"/></td>
</tr>
<tr>
<td></td><td></td>
<td></td><td><asp:Button ID="btnSearchCalls" runat="server" Text="Search" />&nbsp;<asp:Button ID="btnResetSearch" runat="server" Text="Reset" onclick="btnResetSearch_Click" /></td>
</tr>
</table>
</fieldset>
<ajaxToolkit:CalendarExtender ID="CalendarExtender_CallDate" runat="server" TargetControlID="txtDate"></ajaxToolkit:CalendarExtender>
<br />

<table width="100%">
<tr>
<td align="left">
    <asp:Button ID="btnAddNewServiceCall" runat="server" Text="New Service Call" OnClick="btnAddNewServiceCall_Click" /></td>
<td align="right"><b>Count:&nbsp;<asp:Label ID="lblCallCount" runat="server" Text=""></asp:Label></b></td>
</tr>
</table>


<div class="page">
    <asp:GridView ID="gvCallList" runat="server" AutoGenerateColumns="False" 
        AllowPaging="True" CellPadding="4" AllowSorting="True" OnPageIndexChanging="gvCallList_PageIndexChanging" OnSorting="gvCallList_Sorting" 
        ForeColor="#333333" GridLines="None" Width="100%" >
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:TemplateField HeaderText="CallID" HeaderStyle-HorizontalAlign="Left">
            <ItemTemplate>
                <asp:LinkButton ID="lnkSelectCall" CommandArgument='<%# Eval("callid") %>' OnCommand="gvCallList_Select" runat="server" CausesValidation="false">
                <asp:Image runat="server" ID="selectImage" ImageUrl="~/RS/Images/list.gif" AlternateText="Select" />
                </asp:LinkButton>
                &nbsp;
                <asp:Label ID="lblCallId" Text='<%# Eval("callid") %>' runat="server"></asp:Label>
            </ItemTemplate>
            </asp:TemplateField>
<%--            <asp:HyperLinkField DataNavigateUrlFormatString="RSCallDetail.aspx?callid={0}&amp;locationid={1}" 
                DataTextField="CallId" HeaderText="CallId" DataNavigateUrlFields="callid,locationid" SortExpression="CallId" HeaderStyle-HorizontalAlign="Left"/>--%>
            <asp:BoundField DataField="CallDT" HeaderText="DateTime" DataFormatString="{0:d}" SortExpression="CallDT" HeaderStyle-HorizontalAlign="Left"/>
            <asp:BoundField DataField="Subject" HeaderText="Subject" SortExpression="Subject" HeaderStyle-HorizontalAlign="Left"/>
            <asp:BoundField DataField="Address" HeaderText="Address" SortExpression="Address" HeaderStyle-HorizontalAlign="Left"/>
            <asp:BoundField DataField="CallType" HeaderText="CallType" SortExpression="CallType" HeaderStyle-HorizontalAlign="Left"/>
            <asp:BoundField DataField="Status" HeaderText="Status" SortExpression="Status" HeaderStyle-HorizontalAlign="Left"/>
        </Columns>
        <EditRowStyle BackColor="#2461BF" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />
        <EmptyDataTemplate><br />
        <center>
        <asp:Label ID="lblNoRecordFound" runat="server" Text="There Are No Service Call" ForeColor="Silver" Font-Bold="True"></asp:Label>
        </center>
        </EmptyDataTemplate>
    </asp:GridView>

</div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="rightContent" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="pageEditContent" runat="server">
</asp:Content>
